package com.zixuan.sina.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zixuan.sina.entity.Permission;
import com.zixuan.sina.entity.Topic;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.security.core.GrantedAuthority;

import java.time.LocalDateTime;
import java.util.Collection;
import java.util.Date;
import java.util.List;

@Data
public class PostVo {
    private String postId;
    private String userId;
    private String content;
    private String title;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date postTime;
    private List<String> videoUrls;
    private String videoUrl;
    private String imgUrl;
    private List<String> imgUrls;
    private String type;
    private String displayText;
    private List<String> topics;
    /**
     * 用户编号
     */
    private Long id;
    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 昵称
     */
    private String nickName;


    /**
     * 性别(0-男，1-女)
     */
    private Integer gender;

    /**
     * 电话
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 用户头像
     */
    private String avatar;

    private Boolean commentShow;
    private List<CommentVo> commentVos;
    private int isSpecial;

    /**
     * 当前用户是否点赞
     */
    private boolean liked;
    /**
     * 当前文章点赞数量
     */
    private Long likeNum;

}
